package com.hnkywl.sts.entity.htgl;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * 说明：保供合同id和钢贸合同id关联
 * 包:        com.hnkywl.sts.entity.htgl
 * 类描述:    合同定义
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_BGIDGL")
@Where(clause = "deleted!='1'")
public class Bgidgl extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqBgidgl", allocationSize = 1, sequenceName = "SEQ_BIZ_BGIDGL")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqBgidgl")
    private Long id;

    /**
     *合同id
     */
    private  Long htid;

    /**
     * 保供合同id
     */
    private Long bghtid;

    /**
     * 创建时间
     */
    private Date add_date=new Date();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHtid() {
        return htid;
    }

    public void setHtid(Long htid) {
        this.htid = htid;
    }

    public Long getBghtid() {
        return bghtid;
    }

    public void setBghtid(Long bghtid) {
        this.bghtid = bghtid;
    }

    public Date getAdd_date() {
        return add_date;
    }

    public void setAdd_date(Date add_date) {
        this.add_date = add_date;
    }
}
